//-----------------------------------------------------------------------
// <copyright file="OrganizationPersonRole.cs" company="Procure Development">
//     Copyright (c) Procure Development. All rights reserved.
// </copyright>
// <author>Victor Procure</author>
//-----------------------------------------------------------------------

using System;using MongoDB.Bson;using MongoDB.Bson.Serialization.Attributes;

namespace SManagement.Models{
    /// <summary>
    /// The association of an organization (e.g. school, section, employer) to a person with the role (e.g. student, staff).
    /// </summary>
    public class OrganizationPersonRole
    {
        #region Instance Properties
        [BsonId]
        public ObjectId _id { get; set; }

        public ObjectId OrganizationId { get; set; }

        public ObjectId PersonId { get; set; }

        public ObjectId RoleId { get; set; }

        public DateTime? EntryDate { get; set; }

        public DateTime? ExitDate { get; set; }

        #endregion Instance Properties}}